﻿IF EXISTS (SELECT * FROM sysobjects WHERE type = 'P' AND name = 'maquinaUpdate')
	BEGIN
		DROP  Procedure  maquinaUpdate
	END
GO
CREATE PROCEDURE [dbo].[maquinaUpdate] 	
	(	
		@id AS INT,
		@empresa_id AS INT,
		@nombre AS VARCHAR(50),
		@costo_hora AS MONEY
	)	
AS
BEGIN	
	SET NOCOUNT ON
	  
	UPDATE	Lit_Maquina
	SET		EmpresaId = @empresa_id,
			Nombre = @nombre,
			CostoxHora = @costo_hora	
	WHERE id = @id
	
	SET NOCOUNT OFF
END
GO